//
//  LLHomeTitleView.swift
//  WeiBoShiBing
//
//  Created by Bingo on 15/10/31.
//  Copyright © 2015年 Bingo. All rights reserved.
//

import UIKit
//自定义导航控制器顶部title
class LLHomeTitleView: UIButton {

    override func layoutSubviews() {
        super.layoutSubviews()
        
        titleLabel?.frame.origin.x = 0
        
        imageView?.frame.origin.x = (titleLabel?.frame.width)! + 3
        
    }
    convenience init(title:String){
         self.init()
        setTitle(title, forState: UIControlState.Normal)
        setImage(UIImage(named: "navigationbar_arrow_down"), forState: UIControlState.Normal)
        setTitleColor(UIColor.blackColor(), forState: UIControlState.Normal)
        sizeToFit()

    
    }

}
